<!-- markup for content heading -->

<%
	home_url 		= "/home" 
	dashboard_url 	= "/show/#{resume.title}" unless !resume	
	quickEdit_url 	= "/qedit/#{resume.title}" unless !resume	
	view_url		= "/show_p/#{resume.title}" unless !resume	
	pdf_url			= "/makepdf/#{resume.title}" unless !resume	
	newResume_url 	= "/new" 
%>


<div class="heading">
<% case controller.action_name 
	
	when "home" %>
		<div class="left_side">
			<%#= link_to user.username+'-home',	home_url, 		{:class => "heading_item current_item"} %>
		</div>
		<div class="right_side">
			<%= link_to 'New resume',	newResume_url,	{:class => "new_resume_button heading_item" } %>
		</div>	
	
	<% when "new" %>
		<div class="left_side">
			<%#= link_to 'home', home_url, {:class => "heading_item"} %>
		</div>
		<div class="right_side"> 
			<%= link_to 'New resume',	newResume_url,	{:class => "new_resume_button heading_item current_item" } %>
		</div>
	
	<% when "show" %>
		<div class="left_side">
			<%#= link_to 'home', 	home_url, {:class => "heading_item"} %>	
			<%= link_to resume.title+'-dashboard',	dashboard_url,	{:class => "heading_item current_item"}	%>
		</div>
		<div class="right_side">
			<%= link_to 'quick-edit', 	quickEdit_url,	{:class => "heading_item"}	%>
			<%= link_to 'view',			view_url,		{:target => "_blank", :class => "heading_item"}	%>
			<%= link_to 'pdf',			pdf_url,		{:target => "_blank", :class => "heading_item"}	%>
		</div>
		
	<% when "edit3" %>
		<div class="left_side">
			<%#= link_to 'home',	home_url, 		{:class => "heading_item"} 	%>
			<%= link_to 'dashboard',	dashboard_url,	{:class => "heading_item"}	%>
		</div>	
		<div class="right_side">
			<%= link_to 'quick-edit',	quickEdit_url,	{:class => "heading_item current_item"}	%>
			<%= link_to 'view',			view_url,		{:target => "_blank", :class => "heading_item"}	%>
			<%= link_to 'pdf',			pdf_url, 		{:target => "_blank", :class => "heading_item"} %>
		</div>
		
	<% else %>
		<div class="left_side">
			<%#= link_to 'home',	home_url, 		{:class => "heading_item"}	%>
			<%= link_to 'dashboard',	dashboard_url,	{:class => "heading_item"}	%>
		</div>
		<div class="right_side">
			<%= link_to 'quick-edit',	quickEdit_url,	{:class => "heading_item"}	%>	
			<%= link_to 'view',			view_url,		{:target => "_blank", :class => "heading_item"}	%>	
			<%= link_to 'pdf',			pdf_url,		{:target => "_blank", :class => "heading_item"}	%>
		</div>	
	
<% end %>		
</div>